#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>

#define LINE 34

/*This software can make a large table of IPV6 route.*/

FILE *fp;
int zerone;

static const char *optString = "h?vaspctlw";

struct ipv6prefix
{
	char ipv4;
	char as;
}ipv6prefix;

struct ipv6table
{
        char Publish[4];
        char Type[10];
        int Met;
        char Prefix[128];
        int Idx;
        char Gateway[128];
        int Interface;
}ipv6table;

struct ipv6table ciscoa;

struct lipv6
{
	char *type;
	int length;
	int nexthop;
}lipv6;

/*Linux*/
struct linuxtable
{
	char Flags[7];
	char length;
	int Metric;
	int Ref;
	int Use;
	char Iface[10];
}linuxtable;

/* Static funtion */
extern void cisco();
extern void ciscoA();
extern void ciscoB();
extern void aram();
extern int suiji();
extern struct ipv6table ptmii();
extern struct linuxtable lfmrui();
//extern wfile(struct ipv6table ciscot);
extern autowfile();
extern tfile();
extern linuxfile();
extern windowsfile();

extern void usage();
extern void version();
extern void generate();

